<?php

namespace app\shop\enums\order;

use app\shop\enums\BaseEnum;

class OrderStatus extends BaseEnum
{
    /**
     * 待付款
     */
    const TO_PAT = 1;
    /**
     * 待发货
     */
    const TO_SHIPPED = 2;
    /**
     * 待收货
     */
    const TO_RECEIVED = 3;
    /**
     * 待评价
     */
    const TO_EVALUATE = 4;
    /**
     * 已完成
     */
    const COMPLETE = 5;
    /**
     * 已取消
     */
    const CANCEL = 6;

    /**
     * 申请取消
     */
    const REFUND = 7;


    const PRESTORE = 9;
    protected static array $descriptions = [
        self::TO_PAT      => '待付款',
        self::TO_SHIPPED  => '待发货',
        self::TO_RECEIVED => '待收货',
        self::TO_EVALUATE => '待评价',
        self::COMPLETE    => '已完成',
        self::CANCEL      => '已取消',
        self::REFUND      => '申请取消',
        self::PRESTORE    => '已储存'
    ];
}